package com.crm.entity;

import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

@Entity
@Table(name="student")

@DynamicUpdate
@DynamicInsert
public class Student {
@Id
private String stuid;//学生编号
private String stuName;//学生姓名
private Integer age;//学生年龄
private String sex;//学生性别
private String phone;//学员电话
private String stuStatus;//学历
private String perState;//个人状态
private String msgSource;//来源渠道
private String sourceUrl;//来源网址
private String sourceKeyWord;//来源关键词
private String address;//所在区域
@ManyToOne(fetch=FetchType.EAGER)
@JoinColumn(name="netAskerId")
private Netaskers netakers;//网络咨询师外键
@ManyToOne(fetch=FetchType.EAGER)
@JoinColumn(name="askerId")
private Askers askers;//咨询师外键
private String QQ;//学员QQ
private String weiXin;//学员微信
private String content;//备注
private String createTime;//创建时间
private String learnForward;//课程方向
private String isValid;//是否有效
private String record;//打分
private String isReturnVist;//是否回访
private String firstVisitTime;//首次回访时间
private String isHome;//是否上门
private String homeTime;//上门时间
private String lostValid;//无效原因
private String isPay;//是否付款
private String payTime;//付款时间
private Double money;//付款金额
private String isReturnMoney;//是否退费
private String isInClass;//是否进班
private String inClassTime;//进班时间
private String inClassContent;//进班备注
private String askerContent;//咨询师备注
private String isDel;//是否删除
private String fromPart;//来源部门
private String stuConcern;//学员关注
private String isBaoBei;//是否报备
private String ZiXunName;//咨询师填写的姓名
private String createUser;//录入人姓名
private String returnMoneyReason;//退费原因
private Double preMoney;//预付定金
private String preMoneyTime;//预付定金时间
public Student() {
	super();
	// TODO Auto-generated constructor stub
}
public Student(String stuid, String stuName, Integer age, String sex, String phone, String stuStatus, String perState,
			   String msgSource, String sourceUrl, String sourceKeyWord, String address, Netaskers netakers, Askers askers,
			   String qQ, String weiXin, String content, String createTime, String learnForward, String isValid, String record,
			   String isReturnVist, String firstVisitTime, String isHome, String homeTime, String lostValid, String isPay,
			   String payTime, Double money, String isReturnMoney, String isInClass, String inClassTime, String inClassContent,
			   String askerContent, String isDel, String fromPart, String stuConcern, String isBaoBei, String ziXunName,
			   String createUser, String returnMoneyReason, Double preMoney, String preMoneyTime) {
	super();
	this.stuid = stuid;
	this.stuName = stuName;
	this.age = age;
	this.sex = sex;
	this.phone = phone;
	this.stuStatus = stuStatus;
	this.perState = perState;
	this.msgSource = msgSource;
	this.sourceUrl = sourceUrl;
	this.sourceKeyWord = sourceKeyWord;
	this.address = address;
	this.netakers = netakers;
	this.askers = askers;
	QQ = qQ;
	this.weiXin = weiXin;
	this.content = content;
	this.createTime = createTime;
	this.learnForward = learnForward;
	this.isValid = isValid;
	this.record = record;
	this.isReturnVist = isReturnVist;
	this.firstVisitTime = firstVisitTime;
	this.isHome = isHome;
	this.homeTime = homeTime;
	this.lostValid = lostValid;
	this.isPay = isPay;
	this.payTime = payTime;
	this.money = money;
	this.isReturnMoney = isReturnMoney;
	this.isInClass = isInClass;
	this.inClassTime = inClassTime;
	this.inClassContent = inClassContent;
	this.askerContent = askerContent;
	this.isDel = isDel;
	this.fromPart = fromPart;
	this.stuConcern = stuConcern;
	this.isBaoBei = isBaoBei;
	ZiXunName = ziXunName;
	this.createUser = createUser;
	this.returnMoneyReason = returnMoneyReason;
	this.preMoney = preMoney;
	this.preMoneyTime = preMoneyTime;
}
public String getStuid() {
	return stuid;
}
public void setStuid(String stuid) {
	this.stuid = stuid;
}
public String getStuName() {
	return stuName;
}
public void setStuName(String stuName) {
	this.stuName = stuName;
}
public Integer getAge() {
	return age;
}
public void setAge(Integer age) {
	this.age = age;
}
public String getSex() {
	return sex;
}
public void setSex(String sex) {
	this.sex = sex;
}
public String getPhone() {
	return phone;
}
public void setPhone(String phone) {
	this.phone = phone;
}
public String getStuStatus() {
	return stuStatus;
}
public void setStuStatus(String stuStatus) {
	this.stuStatus = stuStatus;
}
public String getPerState() {
	return perState;
}
public void setPerState(String perState) {
	this.perState = perState;
}
public String getMsgSource() {
	return msgSource;
}
public void setMsgSource(String msgSource) {
	this.msgSource = msgSource;
}
public String getSourceUrl() {
	return sourceUrl;
}
public void setSourceUrl(String sourceUrl) {
	this.sourceUrl = sourceUrl;
}
public String getSourceKeyWord() {
	return sourceKeyWord;
}
public void setSourceKeyWord(String sourceKeyWord) {
	this.sourceKeyWord = sourceKeyWord;
}
public String getAddress() {
	return address;
}
public void setAddress(String address) {
	this.address = address;
}
public Netaskers getNetakers() {
	return netakers;
}
public void setNetakers(Netaskers netakers) {
	this.netakers = netakers;
}
public Askers getAskers() {
	return askers;
}
public void setAskers(Askers askers) {
	this.askers = askers;
}
public String getQQ() {
	return QQ;
}
public void setQQ(String qQ) {
	QQ = qQ;
}
public String getWeiXin() {
	return weiXin;
}
public void setWeiXin(String weiXin) {
	this.weiXin = weiXin;
}
public String getContent() {
	return content;
}
public void setContent(String content) {
	this.content = content;
}
public String getCreateTime() {
	return createTime;
}
public void setCreateTime(String createTime) {
	this.createTime = createTime;
}
public String getLearnForward() {
	return learnForward;
}
public void setLearnForward(String learnForward) {
	this.learnForward = learnForward;
}
public String getIsValid() {
	return isValid;
}
public void setIsValid(String isValid) {
	this.isValid = isValid;
}
public String getRecord() {
	return record;
}
public void setRecord(String record) {
	this.record = record;
}
public String getIsReturnVist() {
	return isReturnVist;
}
public void setIsReturnVist(String isReturnVist) {
	this.isReturnVist = isReturnVist;
}
public String getFirstVisitTime() {
	return firstVisitTime;
}
public void setFirstVisitTime(String firstVisitTime) {
	this.firstVisitTime = firstVisitTime;
}
public String getIsHome() {
	return isHome;
}
public void setIsHome(String isHome) {
	this.isHome = isHome;
}
public String getHomeTime() {
	return homeTime;
}
public void setHomeTime(String homeTime) {
	this.homeTime = homeTime;
}
public String getLostValid() {
	return lostValid;
}
public void setLostValid(String lostValid) {
	this.lostValid = lostValid;
}
public String getIsPay() {
	return isPay;
}
public void setIsPay(String isPay) {
	this.isPay = isPay;
}
public String getPayTime() {
	return payTime;
}
public void setPayTime(String payTime) {
	this.payTime = payTime;
}
public Double getMoney() {
	return money;
}
public void setMoney(Double money) {
	this.money = money;
}
public String getIsReturnMoney() {
	return isReturnMoney;
}
public void setIsReturnMoney(String isReturnMoney) {
	this.isReturnMoney = isReturnMoney;
}
public String getIsInClass() {
	return isInClass;
}
public void setIsInClass(String isInClass) {
	this.isInClass = isInClass;
}
public String getInClassTime() {
	return inClassTime;
}
public void setInClassTime(String inClassTime) {
	this.inClassTime = inClassTime;
}
public String getInClassContent() {
	return inClassContent;
}
public void setInClassContent(String inClassContent) {
	this.inClassContent = inClassContent;
}
public String getAskerContent() {
	return askerContent;
}
public void setAskerContent(String askerContent) {
	this.askerContent = askerContent;
}
public String getIsDel() {
	return isDel;
}
public void setIsDel(String isDel) {
	this.isDel = isDel;
}
public String getFromPart() {
	return fromPart;
}
public void setFromPart(String fromPart) {
	this.fromPart = fromPart;
}
public String getStuConcern() {
	return stuConcern;
}
public void setStuConcern(String stuConcern) {
	this.stuConcern = stuConcern;
}
public String getIsBaoBei() {
	return isBaoBei;
}
public void setIsBaoBei(String isBaoBei) {
	this.isBaoBei = isBaoBei;
}
public String getZiXunName() {
	return ZiXunName;
}
public void setZiXunName(String ziXunName) {
	ZiXunName = ziXunName;
}
public String getCreateUser() {
	return createUser;
}
public void setCreateUser(String createUser) {
	this.createUser = createUser;
}
public String getReturnMoneyReason() {
	return returnMoneyReason;
}
public void setReturnMoneyReason(String returnMoneyReason) {
	this.returnMoneyReason = returnMoneyReason;
}
public Double getPreMoney() {
	return preMoney;
}
public void setPreMoney(Double preMoney) {
	this.preMoney = preMoney;
}
public String getPreMoneyTime() {
	return preMoneyTime;
}
public void setPreMoneyTime(String preMoneyTime) {
	this.preMoneyTime = preMoneyTime;
}
@Override
public String toString() {
	return "Student [stuid=" + stuid + ", stuName=" + stuName + ", age=" + age + ", sex=" + sex + ", phone=" + phone
			+ ", stuStatus=" + stuStatus + ", perState=" + perState + ", msgSource=" + msgSource + ", sourceUrl="
			+ sourceUrl + ", sourceKeyWord=" + sourceKeyWord + ", address=" + address + ", netakers=" + netakers
			+ ", askers=" + askers + ", QQ=" + QQ + ", weiXin=" + weiXin + ", content=" + content + ", createTime="
			+ createTime + ", learnForward=" + learnForward + ", isValid=" + isValid + ", record=" + record
			+ ", isReturnVist=" + isReturnVist + ", firstVisitTime=" + firstVisitTime + ", isHome=" + isHome
			+ ", homeTime=" + homeTime + ", lostValid=" + lostValid + ", isPay=" + isPay + ", payTime=" + payTime
			+ ", money=" + money + ", isReturnMoney=" + isReturnMoney + ", isInClass=" + isInClass + ", inClassTime="
			+ inClassTime + ", inClassContent=" + inClassContent + ", askerContent=" + askerContent + ", isDel=" + isDel
			+ ", fromPart=" + fromPart + ", stuConcern=" + stuConcern + ", isBaoBei=" + isBaoBei + ", ZiXunName="
			+ ZiXunName + ", createUser=" + createUser + ", returnMoneyReason=" + returnMoneyReason + ", preMoney="
			+ preMoney + ", preMoneyTime=" + preMoneyTime + "]";
}

}
